package org.skydiveapplibrary.data;

import java.util.ArrayList;
import java.util.List;

import org.skydiveapplibrary.R;

public enum UnitOfMeasure
{
	US(R.string.uom_us),
	Metric(R.string.uom_metric);
	
	private int resourceId;
	
	UnitOfMeasure(int resourceId)
	{
		this.resourceId = resourceId;
	}
	
	public int getResourceId()
	{
		return resourceId; 
	}
	
	public static List<UnitOfMeasure> getItems()
	{
		List<UnitOfMeasure> items = new ArrayList<UnitOfMeasure>();
		for (UnitOfMeasure item: UnitOfMeasure.values())
		{
			items.add(item);
		}
		return items;
	}
}
